package com.ytjj.qmyx.users.enums;

/**
 * @Description TODO
 * @ClassName UserBalanceSourceEnums
 *
 *
 * @Version 1.0
 **/
public enum UserBalanceSourceEnums {

    SINGIN("SINGIN", "签到"),
    ZERO_EVALUATION("ZERO_EVALUATION", "零元测评"),
    ARTIFICIAL_ADD("ZRTIFICIAL_ADD", "人工操作-赠送"),
    LOGIN_GIVE("LOGIN_GIVE", "登录赠送"),
    RELEASE_EVALUATION("RELEASE_EVALUATION", "发布测评"),
    EVALUATION_COMMISSION("EVALUATION_COMMISSION", "测评购物佣金"),
    GROUP_BUY("GROUP_BUY", "拼团收益"),
    CIRCLE_BUY("CIRCLE_BUY", "团小圈收益"),
    REFUND("REFUND", "退款"),
    RETURN_CASH("RETURN_CASH","购物返现"),
    DEDUCTION("DEDUCTION", "钱包抵扣"),
    WITHDRAWAL("WITHDRAWAL", "提现"),
    ARTIFICIAL_SUB("ARTIFICIAL_SUB", "人工操作-扣减"),
    MONEY_REWARD("MONEY_REWARD","红包赠送"),
    VIDEO_COMMISSION("VIDEO_COMMISSION","视频佣金")
    ;

    /**
     * 状态
     */
    private String code;
    /**
     * 状态描述
     */
    private String desc;

    UserBalanceSourceEnums(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static String getCodeDesc(String code) {
        UserBalanceSourceEnums[] values = UserBalanceSourceEnums.values();
        for (UserBalanceSourceEnums value : values) {
            if(value.code.equals(code)) {
                return value.desc;
            }
        }
        return null;
    }
}
